﻿<shared:UserControlBase x:Class="Bymed.SpineScan.WPF.CustomizedUserControl.TrendChartUserControl"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:shared="clr-namespace:Bymed.SpineScan.WPF.Shared"
             xmlns:charting="clr-namespace:System.Windows.Controls.DataVisualization.Charting;assembly=System.Windows.Controls.DataVisualization.Toolkit"
             xmlns:datavis="clr-namespace:System.Windows.Controls.DataVisualization;assembly=System.Windows.Controls.DataVisualization.Toolkit"
             mc:Ignorable="d" 
             d:DesignHeight="100" d:DesignWidth="700">
    <Grid>
        <TextBlock Text="左" Margin="0,14,30,0" VerticalAlignment="Top" HorizontalAlignment="Right" Style="{StaticResource TestReportTextBlock}" />
        <TextBlock Text="右" Margin="0,0,30,6" VerticalAlignment="Bottom" HorizontalAlignment="Right" Style="{StaticResource TestReportTextBlock}" />
        <StackPanel Height="70">
            <charting:Chart Margin="0,-25,10,0" VerticalAlignment="Top" BorderBrush="Transparent" Padding="0,0,0,0">
                <charting:Chart.PlotAreaStyle>
                    <Style TargetType="Grid">
                        <Setter Property="Background" Value="Transparent"/>
                    </Style>
                </charting:Chart.PlotAreaStyle>
                <charting:Chart.LegendStyle>
                    <Style TargetType="{x:Type datavis:Legend}">
                        <Setter Property="Width" Value="0"/>
                    </Style>
                </charting:Chart.LegendStyle>
                <charting:LineSeries DependentValuePath="Value" IndependentValuePath="Key"
        			                     ItemsSource="{Binding GraphData}" IsSelectionEnabled="False" BorderBrush="Transparent">
                    <charting:LineSeries.DataPointStyle>
                        <Style TargetType="{x:Type charting:LineDataPoint}">
                            <Setter Property="Background" Value="Blue"/>
                            <Setter Property="Template" Value="{x:Null}"/>
                        </Style>
                    </charting:LineSeries.DataPointStyle>
                </charting:LineSeries>
                <charting:LineSeries DependentValuePath="Value" IndependentValuePath="Key" 
                                                     ItemsSource="{Binding GraphBaseLineData}" IsSelectionEnabled="False" BorderBrush="Transparent">
                    <charting:LineSeries.DataPointStyle>
                        <Style TargetType="{x:Type charting:LineDataPoint}">
                            <Setter Property="Background" Value="Green"/>
                            <Setter Property="Template" Value="{x:Null}"/>
                        </Style>
                    </charting:LineSeries.DataPointStyle>
                </charting:LineSeries>
            </charting:Chart>
        </StackPanel>
    </Grid>
</shared:UserControlBase>
